package models;

import javax.persistence.Entity;

import play.db.jpa.Model;

@Entity
public class Question extends Model {
    
    public String question;
    public String rightAnswer;
    public String wrongAnswer1;
    public String wrongAnswer2;
    public String tag;
    
    public Question(String question, String answer, String wrongAnswer1, String wrongAnswer2, String tag){
        this.question = question;
        this.rightAnswer = answer;
        this.wrongAnswer1 = wrongAnswer1;
        this.wrongAnswer2 = wrongAnswer2;
    }
    
    @Override
    public String toString() {
        String outPut = "Question: "+ question+"\n";
        outPut += "Answer: "+rightAnswer;
        return outPut;
    }

}
